LIB1ASMSRC = mn10200/lib1funcs.asm
LIB1ASMFUNCS    = _divhi3 \
		  _modhi3 \
		  _addsi3 \
		  _subsi3 \
		  _mulsi3 \
		  _ashlsi3 \
		  _lshrsi3 \
		  _ashrsi3 \
		  _negsi2_d0 \
		  _negsi2_d2 \
		  _zero_extendpsisi2_d0 \
		  _zero_extendpsisi2_d2 \
		  _sign_extendpsisi2_d0 \
		  _sign_extendpsisi2_d2 \
		  _truncsipsi2_d0_d0 \
		  _truncsipsi2_d0_d1 \
		  _truncsipsi2_d0_d2 \
		  _truncsipsi2_d0_d3 \
		  _truncsipsi2_d2_d0 \
		  _truncsipsi2_d2_d1 \
		  _truncsipsi2_d2_d2 \
		  _truncsipsi2_d2_d3 \
		  _cmpsi2 \
		  _ucmpsi2 \
		  _prologue \
		  _epilogue_a0 \
		  _epilogue_d0 \
		  _epilogue_noreturn \
		  _floatdisf \
		  _fixsfdi


# We do not have DF or DI types, so fake out the libgcc2 compilation.
TARGET_LIBGCC2_CFLAGS=-DDF=SF -DDI=SI
LIB2FUNCS_EXTRA = $(srcdir)/config/udivmodsi4.c \
	$(srcdir)/config/divmod.c $(srcdir)/config/udivmod.c

# We want fine grained libraries, so use the new code to build the
# floating point emulation libraries.  The mn10200 only has single
# precision floating point.
FPBIT = fp-bit.c

fp-bit.c: $(srcdir)/config/fp-bit.c
	echo '#define FLOAT' > fp-bit.c
	echo '#define FLOAT_ONLY' >> fp-bit.c
	echo '#define SMALL_MACHINE' >> fp-bit.c
	echo '#define CMPtype HItype' >> fp-bit.c
	echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
	echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
	echo '#endif' 		>> fp-bit.c
	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
